<template>
	<el-card shadow="never" header="近7天操作记录">
		<scTable ref="table" :apiObj="apiObj" height="auto" paginationLayout="total, prev, pager, next" hideDo>
			<sc-table-column label="序号" type="index"></sc-table-column>
			<sc-table-column label="操作类型" prop="operationDesc" min-width="240"></sc-table-column>
			<sc-table-column label="IP" prop="ipAddress" width="150"></sc-table-column>
			<sc-table-column label="结果" prop="result" width="150">
				<template #default="scope">
					<el-tag v-if="scope.row.result==='SUCCESS'" type="success">启用</el-tag>
					<el-tag v-if="scope.row.result==='FAILURE'" type="danger">停用</el-tag>
				</template>
			</sc-table-column>
			<sc-table-column label="操作时间" prop="operationTime" width="150"></sc-table-column>

		</scTable>
	</el-card>
</template>

<script>
	export default {
		data() {
			return {
				apiObj: {
					get: (param)=>{
						param.module = "USER"
						return this.$API.system.log.list.get(param)
					}
				}
			}
		},
		methods:{

		}
	}
</script>

<style>
</style>
